package com.robam.cloud.authcenter.event;

import com.google.common.eventbus.Subscribe;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 事件监听器
 *
 * @author zhanggj
 */
public class EventListener {

    final static Logger logger = LoggerFactory.getLogger(EventListener.class);

    @Subscribe
    public void onEvent(EvidenceEvent event) {
        try {
            event.execute();
        } catch (Exception e) {
            logger.error("Error send message: {}, {}", e.getMessage(), e);
        }
    }

}
